package com.baosu.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baosu.domain.Article;
import com.baosu.domain.Tag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface TagMapper extends BaseMapper<Tag> {

    List<String> getByArticleId(Long id);

    int selectTagAndArticle(List<Long> ids);

    List<Article> getArticleByTag(Page<Article> page, Long tagId);

    List<Tag> getArticleCount();
}




